<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;


//加载首页
Route::rule('home','home/Index/Index');
//加载风格页
Route::rule('style','home/Style/Index');
//加载风格下的所有单曲
Route::rule('styles','home/Style/Style');

Route::rule('random','home/Random/Index');

Route::rule('listen','home/Listen/Index');
//加载单曲页面
Route::rule('music','home/Listen/Music');



//加载歌单页面
Route::rule('video','home/Video/Index');
//加载歌单中的单曲
Route::rule('videos','home/Video/MyList');





Route::rule('userz','home/User/Zone');
Route::rule('userf','home/User/Friend');
Route::rule('hlogin','home/Login/Index');
Route::rule('hsign','home/Sign/Index');
Route::post('dologin','home/Login/DoLogin');
Route::post('dosign','home/Sign/DoSign');
Route::post('doinfo','home/User/DoInfo');








Route::get('/', 'index/Index/index');

// 后台登录相关
Route::post('login','admin/LoginController/doLogin');
Route::get('reLogin','admin/LoginController/index');
Route::get('out','admin/LoginController/loginout');

// 店铺列表
//Route::get('astore','admin/StoreController/index');
//Route::get('storeadd','admin/StoreController/create');
//Route::get('affdel/:id','admin/AfficheController/delete');


Route::get('/', 'index/Index/index');

// 后台登录相关
Route::post('login','admin/LoginController/doLogin');
Route::get('reLogin','admin/LoginController/index');
Route::get('out','admin/LoginController/loginout');

// 店铺列表
//Route::get('astore','admin/StoreController/index');
//Route::get('storeadd','admin/StoreController/create');
//Route::get('affdel/:id','admin/AfficheController/delete');



// 权限路由
Route::resource('node','admin/NodeController');

// 用户的 资源路由
Route::get('editrole/:id','admin/index/rolelist');
Route::post('saverole','admin/Index/setrole');
Route::get('show','admin/index/showPage');
Route::resource('admin','admin/Index');
Route::get('user','admin/UserController/index');
Route::get('add','admin/UserController/create');
Route::get('person','admin/UserController/personlist');
Route::get('edit','admin/UserController/edituser');

// 角色的 资源路由
Route::resource('role','admin/RoleController');
Route::get('roleset','admin/UserController/rolelist');
Route::get('editnode/:id','admin/RoleController/nodelist');
Route::post('savenode','admin/RoleController/setnode');

// 权限路由
Route::resource('node','admin/NodeController');

// 用户的 资源路由
Route::get('editrole/:id','admin/index/rolelist');
Route::post('saverole','admin/Index/setrole');
Route::get('show','admin/index/showPage');
Route::resource('admin','admin/Index');
Route::get('user','admin/UserController/index');
Route::get('add','admin/UserController/create');
// 角色的 资源路由
Route::resource('role','admin/RoleController');
Route::get('editnode/:id','admin/RoleController/nodelist');
Route::post('savenode','admin/RoleController/setnode');

return [

];


